#pragma config(Hubs,  S1, HTMotor,  HTMotor,  none,     none)
#pragma config(Sensor, S1,     ,               sensorI2CMuxController)
#pragma config(Sensor, S4,     angle,          sensorI2CCustomFastSkipStates)
#pragma config(Motor,  motorA,          C1,            tmotorNXT, openLoop, encoder)
#pragma config(Motor,  motorB,          C2,            tmotorNXT, openLoop, encoder)
#pragma config(Motor,  motorC,          C3,            tmotorNXT, openLoop, encoder)
#pragma config(Motor,  mtr_S1_C1_1,     FL,            tmotorTetrix, openLoop, reversed)
#pragma config(Motor,  mtr_S1_C1_2,     FR,            tmotorTetrix, openLoop)
#pragma config(Motor,  mtr_S1_C2_1,     Arm,           tmotorTetrix, openLoop, encoder)
#pragma config(Motor,  mtr_S1_C2_2,     Lift,          tmotorTetrix, openLoop, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
  while(1==1)
  {if(nNxtButtonPressed==kRightButton)
    {
      motor[Lift]=-100;
    }
    else if (nNxtButtonPressed==kLeftButton)
    {
      motor[Lift]=100;
    }
    else
    {
      motor[Lift]=0;
    }
  }
}
